Added resize+fit feature

Added resize fit which will resize an image to specified dimensions and fit the original in it.