reduce image size
check for blanks