change image width size in metadata and fix rs.add