Fixed error when compiling images

Fixed error when compiling images