Added more Pattern objects
Added image name else if clause