add comment fo resizePicture function