Changed some image specific Resources functions to generic ones.