Simplified _getImageResourceSize method