Implemented image resource creation