When scanning a folder to create a gallery, the thumbnail which is generated is occasionally bad. And by ‘bad’ it seems that a portion of the image is sliced off or out of position. Please see this link for two examples:
This could be cause by memory usage on the server. If the image(s) are to big an you don’t have enough resource in the server a takes a while to process the image.