feature #2489: Size must be set for SOURCE based images

(cherry picked from commit cd177e6ab0566641a0e8810ed5947cc9c2ddcdeb)