fixed image exension problem