Added resizing for images