better way to do images