v1.21

Added function to check imagick resource validity with fallback to GD
library