Added funtions for image cropping and downsizeing. Cropping functions incomplete