make images more flexible