adding thumbnail creation on image save