limit size of images in chat