update views
add image resize and crop function