Added snippet to resize/crop images