improvement functionality
added a new function to resizing image to the dimensions not in px