I have noticed a strange thing: when I add a border around an image retrieved from the database, there are several pixels space between the image and the border. I have then found out that all the images with this problem share the same problem: when saved on the disk they are 1 byte less in size than the original ones. Have you noticed this? Where is the catch?