added location checking for .png resources