add load-image-resource function
fix reflection warnings