imagemagick problem when using php 5.3.x version