Fixed saving imagelayer with incorrect format