making images entities from complex types