Change Image to deal with jpeg