minor fix for custom image types