use calculated image dimensions