Add obtainDimensions on imagick