Added resize and restore size blocks for sprites