tried implementing imagemagick but undid the changes