Optimize the images sent