changed image library to GD