Adding maxHeight and maxWidth verification, java-image-scaling throws a RuntimeException if one of them are smaller than 3