fixing images file extension