image changes
added minimum image size check