resize image(jpg,png,gif,swf)