[TASK] Use ImageInfo class instead of direct PHP GD call