fix uploaded image width problem

auto scaling image based on container size