Can I check the dimensions of an image by using Perl?