hackishly update image size to fit in existing margins!