This usually happens when the setPosition block is used with all of its parameters including. To reduce the number of parameters in block mode, click the little arrow at the end of the block to remove the height and the width. The image will now remain the size set in design mode.

Happy computing,
Andrea