Update extension on image