Added image resizing capabilities