rework wrap around for pictures, use mod instead of if-else