image size processing implemented for thumbs and regular