Added image size limits to instruction creator.