FIX: GD - check file exists before getimagesize

Use is_readable to check the file exists and is readable, otherwise a warning occurs when the file doesn't exist.