Add image size to avoid repaints