making images more flexible