Implemented Dynamic Image Resizing